import request from './request.js'
export const wxloginApi = (params) => request('/au/defaultLogin/wxLogin', params, 'post') //app手机短信登录或注册接口
export const aliLoginApi = (params) => request('/au/defaultLogin/aliLogin', params, 'post') //支付宝授权登录
export const zfbLogin = (params) => request('/au/defaultLogin/aliUserInfo', params, 'post') //支付宝授权获取用户信息
export const loginApi = (params) => request('/au/defaultLogin/login/mobile', params, 'post') //app手机短信登录或注册接口
export const smsApi = (phone) => request('/au/defaultLogin/getCode/' + phone, 'get') //获取验证码
export const infoApi = () => request('/au/defaultLogin/getInfo', 'get') //获取用户基本信息
export const editInfoApi = (params) => request('/api/user/edit', params, 'post') //修改用户信息
export const merchantAddApi = (params) => request('/api/merchant/add', params, 'post') //新增商家入驻信息
export const deliverymanApi = (params) => request('/api/deliveryman/apply', params, 'post') //新增配送员
export const couponsApi = () => request('/api/coupon/coupons', 'get') //可领取优惠券列表
export const receiveApi = (params) => request('/api/coupon/receive', params, 'get') //领取优惠券
export const getOrderCoupon = (id) => request('/api/coupon/coupons/order/' + id, 'get') //优惠券订单获取
export const addressListApi = (params) => request('/api/userAddress/list', params, 'get') //用户地址列表
export const addressAddApi = (params) => request('/api/userAddress/address/edit', params, 'post') //添加或修改地址
export const addressSetApi = (params) => request('/api/userAddress/address/default/set', params, 'post') //设置默认地址
export const addressDetailApi = (id) => request('/api/userAddress/address/detail/' + id, 'get') //地址详情
export const addressDelApi = (params) => request('/api/userAddress/address/del', params, 'post') //删除用户地址
export const categoryApi = () => request('/api/storeCategory/category', 'get') //商品分类列表
export const goodsApi = (params) => request('/api/storeProduct/products', params, 'get') //商品列表
export const collectApi = (params) => request('/api/user/list', params, 'get') //商品收藏
export const detailApi = (id) => request('/api/storeProduct/product/detail/' + id, 'get') //普通商品详情
export const getCollectAdd = (params) => request('/api/storeProduct/collect/add', params, 'post') //收藏或点赞
export const getCollectDel = (params) => request('/api/storeProduct/collect/del', params, 'post') //取消收藏或点赞
export const merchantInfoApi = () => request('/api/merchant/getInfo', 'get') //获取商家入驻信息
export const getDataNum = () => request('/api/storeOrder/getData', 'get') //我的页面，四个大数字
export const postCartAdd = (params) => request('/api/storeOrder/add', params, 'post') //新增订单
export const getOrderList = (params) => request('/api/storeOrder/list', params, 'get') //查询订单列表
export const stopApi = (params) => request('/api/storeOrder/stop', params, 'get') //停止订单
export const changeCartNum = (id) => request('/api/storeOrder/getInfo/' + id, 'get') //获取订单详细信息
export const postCartDel = (params) => request('/api/storeCart/cart/del', params, 'post') //购物车删除产品
export const postOrderConfirm = (params) => request('/api/storeOrder/order/confirm', params, 'post') //订单确认
export const postOrderComputed = (key, params) => request('/api/storeOrder/order/computed/' + key, params,
	'post') //计算订单金额
export const createOrderApi = (key, params) => request('/api/storeOrder/order/create/' + key, params,
	'post') //订单创建
export const cityListApi = () => request('/api/userAddress/city_list', 'get') //城市列表
export const deliveryInfoApi = () => request('/api/deliveryman/getInfo', 'get') //获取配送员入驻信息
export const deliveryChageApi = (params) => request('/api/deliveryman/workStatus', params, 'post') //修改上线状态
export const deliverymanorder = (params) => request('/api/deliveryman/orders', params, 'get') //配送员订单列表
export const deliverymandetail = (params) => request('/api/deliveryman/detail', params, 'get') //配送员订单详情
export const pictureApi = () => request('/api/picture/listAll', 'get') //轮播图列表
export const deliverymanStatus = (params) => request('/api/deliveryman/order', params, 'post') //骑手更改订单状态
export const orderTotaltApi = () => request('/api/deliveryman/orderTotal', 'get') //订单统计
export const billsApi = (params) => request('/api/userBill/list', params, 'get') //配送员收入明细
export const extractApi = (params) => request('/business/userExtract/add', params, 'post') //申请提现
export const invoiceListApi = () => request('/api/userBankCard/listAll', 'get') //用户发票列表
export const invoiceAddApi = (params) => request('/api/userBankCard/add', params, 'post') //添加发票
export const invoiceEditApi = (params) => request('/api/userBankCard/edit', params, 'post') //修改发票
export const invoiceDetailApi = (id) => request('/api/userBankCard/getInfo/' + id, 'get') //发票详情
export const invoiceDelApi = (id) => request('/api/userBankCard/remove/' + id, 'get') //删除用户发票
export const bindApi = (params) => request('/api/user/bind', params, 'post') //绑定上级
export const bindByUidApi = (params) => request('/api/user/bindByUid', params, 'post') //绑定上级